package cn.tedu.zx.product.webapi.ex;


public enum ServiceCode {
    OK (2000),//创建对象并赋予属性值
    ERR_NOTFOUND(4040),
    ERR_CONTACT(4090),
    ERR_OCCUPY(4100),
    ERR_SYS(9999),
    ERR_INSERT(5010),
    ERR_UPDATE(5020),
    ERR_DELETE(5030);

    private Integer value;/*为枚举对象添加属性*/

    ServiceCode(Integer value) {
        this.value = value;
    }

    public Integer getValue() {
        return value;
    }
}
